# Contributor: Sodface <sod@sodface.com>
# Maintainer: Sodface <sod@sodface.com>
pkgname=tio
pkgver=3.2
pkgrel=0
pkgdesc="Simple TTY Terminal I/O Application"
url="https://github.com/tio/tio"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	bash-completion-dev
	glib-dev
	linux-headers
	lua5.4-dev
	meson
	"
options="!check" # no test suite
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://github.com/tio/tio/releases/download/v$pkgver/tio-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
37ee36a52b0a41bd8e8fdc0329036fdaedd3130d2e19a92c8f14d86fd2193a5ed1354893c3a8f05e102db5fcb496993fb1700303fd0d2820b9e519abb33976cf  tio-3.2.tar.xz
"
